<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>编辑博客页面</title>
</head>
<form action="{% url 'blog:article_edit_page_action' %}" method="post">

    {% csrf_token %}

    {% if article %}
       <input type="hidden" name="article_id_hidden"  value="{{ article.id }}">
       <label>博客标题
           <input type="text" name="title" value="{{ article.title }}">
        </label>
        </br>
        <label>博客内容
           <input type="text" name="content", value="{{ article.content }}">
        </label>
        </br>
        <input type="submit" value="提交">
    {% else %}
     <input type="hidden" name="article_id_hidden"  value="0">
     <label>博客标题
           <input type="text" name="title">
        </label>
        </br>
        <label>博客内容
           <input type="text" name="content">
        </label>
        </br>
        <input type="submit" value="提交">
    {% endif %}
</form>
<body>

</body>
</html>